
<!DOCTYPE HTML>
<html lang="zh-hans" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>第四章 选择结构 · C语言程序设计精髓程</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        <meta name="author" content="马小安">
        
        
    
    <link rel="stylesheet" href="gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-search-plus/search.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-disqus/plugin.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-prism/prism-base16-ateliersulphurpool.light.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-emphasize/plugin.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-katex/katex.min.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-splitter/splitter.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-terminal/plugin.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="chapter5.html" />
    
    
    <link rel="prev" href="chapter3.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="输入并搜索" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="./">
            
                <a href="./">
            
                    
                        <b>1.1.</b>
                    
                    Introduction
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="chapter1.html">
            
                <a href="chapter1.html">
            
                    
                        <b>1.2.</b>
                    
                    第一章 基础知识
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="chapter2.html">
            
                <a href="chapter2.html">
            
                    
                        <b>1.3.</b>
                    
                    第二章 数据类型
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="chapter3.html">
            
                <a href="chapter3.html">
            
                    
                        <b>1.4.</b>
                    
                    第三章 顺序结构
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.5" data-path="chapter4.html">
            
                <a href="chapter4.html">
            
                    
                        <b>1.5.</b>
                    
                    第四章 选择结构
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="chapter5.html">
            
                <a href="chapter5.html">
            
                    
                        <b>1.6.</b>
                    
                    第五章 循环结构
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="chapter6.html">
            
                <a href="chapter6.html">
            
                    
                        <b>1.7.</b>
                    
                    第六章 数组概念
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8" data-path="chapter7.html">
            
                <a href="chapter7.html">
            
                    
                        <b>1.8.</b>
                    
                    第七章 函数与预编译
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9" data-path="chapter8_1.html">
            
                <a href="chapter8_1.html">
            
                    
                        <b>1.9.</b>
                    
                    第八章 指针类型(1)
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10" data-path="chapter8_2.html">
            
                <a href="chapter8_2.html">
            
                    
                        <b>1.10.</b>
                    
                    第八章 指针类型(2)
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11" data-path="chapter9_1.html">
            
                <a href="chapter9_1.html">
            
                    
                        <b>1.11.</b>
                    
                    第九章 结构体类型(1)
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12" data-path="chapter9_2.html">
            
                <a href="chapter9_2.html">
            
                    
                        <b>1.12.</b>
                    
                    第九章 结构体类型(2)
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13" data-path="chapter9_3.html">
            
                <a href="chapter9_3.html">
            
                    
                        <b>1.13.</b>
                    
                    第九章 结构体类型(3)
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.14" data-path="chapter10.html">
            
                <a href="chapter10.html">
            
                    
                        <b>1.14.</b>
                    
                    第十章 位运算
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15" data-path="chapter11.html">
            
                <a href="chapter11.html">
            
                    
                        <b>1.15.</b>
                    
                    第十一章 排序算法
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.16" data-path="Glossary.html">
            
                <a href="Glossary.html">
            
                    
                        <b>1.16.</b>
                    
                    其他资源
            
                </a>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            本书使用 GitBook 发布
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="." >第四章 选择结构</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <p>n()&#x5F00;&#x59CB;&#xFF0C;&#x81EA;&#x4E0A;&#x800C;&#x4E0B;&#xFF0C;&#x6709;&#x4E9B;&#x6267;&#x884C;&#xFF0C;&#x6709;&#x4E9B;&#x4E0D;&#x6267;&#x884C;.</p>
<ul>
<li>&#x4E24;&#x7C7B;&#x8868;&#x8FBE;&#x5F0F;&#xFF08;&#x5173;&#x7CFB;&#x8868;&#x8FBE;&#x5F0F;&#x548C;&#x903B;&#x8F91;&#x8868;&#x8FBE;&#x5F0F;&#xFF09;</li>
<li><strong>(1)&#x5173;&#x7CFB;&#x8FD0;&#x7B97;&#x7B26;&#x53CA;&#x5173;&#x7CFB;&#x8868;&#x8FBE;&#x5F0F;</strong><ul>
<li>&#x6570;&#x91CF;&#xFF1A;(&lt;= &lt;  &gt;=  &gt; ) != ==</li>
<li>&#x529F;&#x80FD;&#xFF1A;&#x7ED3;&#x679C;&#x662F;&#x903B;&#x8F91;&#x503C;&#xFF08;0&#x6216;&#x8005;1&#xFF09;</li>
<li>&#x4F18;&#x5148;&#x7EA7;&#xFF1A;&#x524D;4&#x4E2A;6&#x7EA7;&#xFF0C;&#x540E;2&#x4E2A;7&#x7EA7;</li>
<li>&#x7ED3;&#x5408;&#x6027;&#xFF1A;&#x4ECE;&#x5DE6;&#x5411;&#x53F3;</li>
</ul>
</li>
<li><p><strong>(2)&#x903B;&#x8F91;&#x8FD0;&#x7B97;&#x7B26;&#x53CA;&#x903B;&#x8F91;&#x8868;&#x8FBE;&#x5F0F;</strong></p>
<ul>
<li>&#x6570;&#x91CF;&#xFF1A; ||(l&#x903B;&#x8F91;&#x6216;) &amp;&amp;(&#x903B;&#x8F91;&#x4E0E;) !(&#x903B;&#x8F91;&#x975E;)(&#x5355;&#x76EE;)</li>
<li>&#x529F;&#x80FD;&#xFF1A;&#x7ED3;&#x679C;&#x53EA;&#x6709;0&#x6216;1</li>
<li>&#x4F18;&#x5148;&#x7EA7;&#xFF1A;&#x903B;&#x8F91;&#x975E;2&#x7EA7;&#xFF0C;&#x903B;&#x8F91;&#x4E0E;11&#x7EA7;&#xFF0C;&#x903B;&#x8F91;&#x6216;12&#x7EA7;</li>
<li>&#x7ED3;&#x5408;&#x6027;&#xFF1A;&#x4ECE;&#x53F3;&#x5411;&#x5DE6;</li>
</ul>
</li>
<li><p><strong>(3)&#x8868;&#x8FBE;&#x5F0F;&#x6C42;&#x503C;&#x7684;&#x6B65;&#x9AA4;</strong></p>
<ul>
<li>&#x5408;&#x6CD5;&#x6027;</li>
<li>&#x6709;&#x65E0;&#x77ED;&#x8DEF;</li>
<li>&#x4F18;&#x5148;&#x7EA7;</li>
<li>&#x7ED3;&#x5408;&#x6027;</li>
</ul>
</li>
</ul>
<h3 id="if&#x8BED;&#x53E5;&#xFF08;&#x4E09;&#x79CD;&#x683C;&#x5F0F;&#xFF09;&#x5F00;&#x5173;&#x8BED;&#x53E5;">if&#x8BED;&#x53E5;&#xFF08;&#x4E09;&#x79CD;&#x683C;&#x5F0F;&#xFF09;&lt;&#x5F00;&#x5173;&#x8BED;&#x53E5;&gt;</h3>
<p> &#x683C;&#x5F0F;1&#xFF1A;(&#x5C31;&#x8FD1;&#x63A7;&#x5236;)&#xFF0C;&#x6574;&#x4E2A;&#x7B97;&#x4E00;&#x6761;&#x8BED;&#x53E5;</p>
<pre class="language-"><code>```
if(&#x8868;&#x8FBE;&#x5F0F;)
    &#x8BED;&#x53E5;&#x5E8F;&#x5217;1&#xFF1B;
&#x540E;&#x7EED;&#x8BED;&#x53E5;
```
</code></pre><p> &#x683C;&#x5F0F;2&#xFF08;if...else&#xFF09;&#xFF0C;else&#x548C;if&#x5FC5;&#x987B;&#x914D;&#x5BF9;&#xFF0C;&#x6574;&#x4E2A;&#x7B97;&#x4E00;&#x6761;&#x8BED;&#x53E5;</p>
<pre class="language-"><code>* if&#x63A7;&#x5236;&#x4E00;&#x6761;&#x5C31;&#x8FD1;&#x8BED;&#x53E5;&#xFF08;&#x590D;&#x5408;&#x8BED;&#x53E5;{}&#xFF09;&#xFF0C;else&#x4E5F;&#x63A7;&#x5236;&#x4E00;&#x6761;&#x5C31;&#x8FD1;&#x8BED;&#x53E5;&#x3002;

```
if(&#x8868;&#x8FBE;&#x5F0F;)
    &#x8BED;&#x53E5;&#x5E8F;&#x5217;1&#xFF1B;
else
    &#x8BED;&#x53E5;&#x5E8F;&#x5217;2&#xFF1B;
```
</code></pre><p>&#x683C;&#x5F0F;&#x5316;3&#xFF08;if... else if... else...&#xFF09;&#x6574;&#x4E2A;&#x7B97;&#x4E00;&#x6761;&#x8BED;&#x53E5;</p>
<pre class="language-"><code>//&#x4E0B;&#x9762;&#x7684;&#x4E09;&#x6761;&#x8BED;&#x53E5;&#x53EA;&#x4F1A;&#x6267;&#x884C;&#x4E00;&#x6761;&#x3002;
```
if(&#x8868;&#x8FBE;&#x5F0F;1)
    if(&#x8868;&#x8FBE;&#x5F0F;2)
        &#x8BED;&#x53E5;&#x5E8F;&#x5217;11&#xFF1B;
    else
        &#x8BED;&#x53E5;&#x5E8F;&#x5217;12&#xFF1B;
else
    &#x8BED;&#x53E5;&#x5E8F;&#x5217;2&#xFF1B; 
```
</code></pre><ul>
<li><strong>&#x89E3;&#x9898;&#x65B9;&#x6CD5;</strong><ul>
<li>&#x627E;&#x914D;&#x5BF9;&#xFF08;else if&#x8981;&#x914D;&#x5BF9;&#xFF09;</li>
<li>&#x627E;&#x63A7;&#x5236;&#xFF08;&#x63A7;&#x5236;&#x8BED;&#x53E5;)</li>
<li><h5 id="c&#x8BED;&#x8A00;&#x4E2D;&#x4F18;&#x5148;&#x7EA7;&#x4E3A;1&#x7EA7;&#x548C;2&#x7EA7;&#x4E3A;&#x5355;&#x76EE;&#x8FD0;&#x7B97;&#x7B26;&#xFF08;&#x7ED3;&#x5408;&#x6027;&#x6C38;&#x8FDC;&#x4ECE;&#x53F3;&#x5411;&#x5DE6;&#xFF09;&#xFF0C;3-12&#x7EA7;&#x4E3A;&#x53CC;&#x76EE;&#x8FD0;&#x7B97;&#x7B26;&#xFF08;&#x7ED3;&#x5408;&#x6027;&#x6C38;&#x8FDC;&#x4ECE;&#x5DE6;&#x5411;&#x53F3;&#xFF09;">==C&#x8BED;&#x8A00;&#x4E2D;&#x4F18;&#x5148;&#x7EA7;&#x4E3A;1&#x7EA7;&#x548C;2&#x7EA7;&#x4E3A;&#x5355;&#x76EE;&#x8FD0;&#x7B97;&#x7B26;&#xFF08;&#x7ED3;&#x5408;&#x6027;&#x6C38;&#x8FDC;&#x4ECE;&#x53F3;&#x5411;&#x5DE6;&#xFF09;&#xFF0C;3-12&#x7EA7;&#x4E3A;&#x53CC;&#x76EE;&#x8FD0;&#x7B97;&#x7B26;&#xFF08;&#x7ED3;&#x5408;&#x6027;&#x6C38;&#x8FDC;&#x4ECE;&#x5DE6;&#x5411;&#x53F3;&#xFF09;==</h5>
</li>
</ul>
</li>
</ul>
<h5 id="c&#x8BED;&#x8A00;&#x4E2D;&#x4E24;&#x7C7B;&#x77ED;&#x8DEF;&#x73B0;&#x8C61;&#xFF0C;&#x903B;&#x8F91;&#x4E0E;&#x4E2D;&#x7684;0&#x77ED;&#x8DEF;&#xFF0C;&#x903B;&#x8F91;&#x6216;&#x4E2D;&#x7684;1&#x77ED;&#x8DEF;">==C&#x8BED;&#x8A00;&#x4E2D;&#x4E24;&#x7C7B;&#x77ED;&#x8DEF;&#x73B0;&#x8C61;&#xFF0C;&#x903B;&#x8F91;&#x4E0E;&#x4E2D;&#x7684;0&#x77ED;&#x8DEF;&#xFF0C;&#x903B;&#x8F91;&#x6216;&#x4E2D;&#x7684;1&#x77ED;&#x8DEF;==</h5>
<h2 id="&#x5728;&#x77ED;&#x8DEF;&#x60C5;&#x51B5;&#x4E0B;&#xFF0C;&#x540E;&#x9762;&#x7684;&#x6570;&#x503C;&#x4E0D;&#x4F1A;&#x8BA1;&#x7B97;&#xFF0C;&#x6BD4;&#x5982;a1b2&#x5219;&#xFF1A;a2--a&#x56E0;&#x4E3A;a2&#x4E3A;&#x5047;&#xFF0C;&#x6545;&#x5DF2;&#x7ECF;&#x77ED;&#x8DEF;&#xFF0C;a&#x662F;&#x4E0D;&#x6267;&#x884C;&#x7684;&#xFF0C;a&#x7684;&#x503C;&#x4E0D;&#x4F1A;&#x53D1;&#x751F;&#x6539;&#x53D8;&#x3002;&#x5B9E;&#x7528;&#x4E3E;&#x4F8B;&#xFF1A;i0-ji0">&#x5728;&#x77ED;&#x8DEF;&#x60C5;&#x51B5;&#x4E0B;&#xFF0C;&#x540E;&#x9762;&#x7684;&#x6570;&#x503C;&#x4E0D;&#x4F1A;&#x8BA1;&#x7B97;&#xFF0C;&#x6BD4;&#x5982;a=1,b=2,&#x5219;&#xFF1A;a&gt;2 &amp;&amp; ++a,&#x56E0;&#x4E3A;a&gt;2&#x4E3A;&#x5047;&#xFF0C;&#x6545;&#x5DF2;&#x7ECF;&#x77ED;&#x8DEF;&#xFF0C;++a&#x662F;&#x4E0D;&#x6267;&#x884C;&#x7684;&#xFF0C;a&#x7684;&#x503C;&#x4E0D;&#x4F1A;&#x53D1;&#x751F;&#x6539;&#x53D8;&#x3002;&#x5B9E;&#x7528;&#x4E3E;&#x4F8B;&#xFF1A;(i!=0) &amp;&amp;(j/i&gt;0)</h2>
<h3 id="switch&#x8BED;&#x53E5;&#x683C;&#x5F0F;&#xFF1A;">switch&#x8BED;&#x53E5;&#x683C;&#x5F0F;&#xFF1A;</h3>
<ul>
<li><ul>
<li>&#x6CE8;&#x610F;&#x4E8B;&#x9879;&#xFF1A;</li>
<li>1&#xFF09;switch&#x8BED;&#x53E5;&#x540E;&#x9762;&#x7684;&#x8868;&#x8FBE;&#x5F0F;&#x5FC5;&#x987B;&#x7528;&#x62EC;&#x53F7;&#x62EC;&#x8D77;&#x6765;&#xFF1B;</li>
<li>2&#xFF09;case&#x540E;&#x9762;&#x5E38;&#x91CF;&#x6574;&#x578B;&#x6216;&#x5B57;&#x7B26;&#x578B;&#xFF0C;&#x4E0D;&#x80FD;&#x6709;&#x53D8;&#x91CF;&#x6216;&#x9017;&#x53F7;&#x8FD0;&#x7B97;&#x7B26;&#xFF1B;</li>
<li>3&#xFF09;&#x5404;case&#x540E;&#x5E38;&#x91CF;&#x4E0D;&#x80FD;&#x51FA;&#x73B0;&#x76F8;&#x540C;&#x7684;&#x6570;&#x503C;&#xFF1B;</li>
<li>4&#xFF09;case&#x548C;default&#x53EA;&#x662F;&#x4E00;&#x4E2A;&#x5165;&#x53E3;&#x6807;&#x5FD7;&#xFF0C;&#x4ED6;&#x4EEC;&#x7684;&#x987A;&#x5E8F;&#x53EF;&#x4EE5;&#x7684;&#x98A0;&#x5012;&#x3002;</li>
<li>5&#xFF09;case&#x548C;default&#x5FC5;&#x987B;&#x51FA;&#x5728;switch&#x8BED;&#x53E5;&#x4E2D;&#x3002;</li>
<li>6&#xFF09;&#x6267;&#x884C;&#x8FC7;&#x7A0B;&#xFF1A;&#x5148;&#x8BA1;&#x7B97;&#x8868;&#x8FBE;&#x5F0F;&#x7684;&#x6570;&#x503C;&#xFF0C;&#x7136;&#x540E;&#x5C06;&#x8BE5;&#x6570;&#x503C;&#x548C;case&#x540E;&#x5E38;&#x91CF;&#x4ECE;&#x4E0A;&#x5F80;&#x4E0B;&#x5339;&#x914D;&#xFF08;&#x5168;&#x90E8;&#x6BD4;&#x8F83;&#xFF09;&#xFF0C;&#x5982;&#x679C;&#x6CA1;&#x6709;&#x5339;&#x914D;&#xFF0C;&#x5219;&#x5BFB;&#x627E;default&#x8BED;&#x53E5;&#x3002;&#x5982;&#x679C;&#x5339;&#x914D;&#x6210;&#x529F;&#xFF0C;&#x4E14;&#x8DF3;&#x51FA;switch&#x8BED;&#x53E5;&#xFF0C;&#x5219;&#x9700;&#x8981;&#x589E;&#x52A0;break&#x8BED;&#x53E5;&#x3002;<pre class="language-"><code>/
switch(&#x8868;&#x8FBE;&#x5F0F;)
{
case &#x5E38;&#x91CF;&#x8868;&#x8FBE;&#x5F0F;1&#xFF1A;&#x5B50;&#x53E5;1&#xFF1B;
case &#x5E38;&#x91CF;&#x8868;&#x8FBE;&#x5F0F;2&#xFF1A;&#x5B50;&#x53E5;2&#xFF1B;
case &#x5E38;&#x91CF;&#x8868;&#x8FBE;&#x5F0F;3&#xFF1A;&#x5B50;&#x53E5;3&#xFF1B;
......
case &#x5E38;&#x91CF;&#x8868;&#x8FBE;&#x5F0F;n&#xFF1A;&#x5B50;&#x53E5;n&#xFF1B;
default:   &#x5B50;&#x53E5;n+1
}
</code></pre></li>
</ul>
</li>
</ul>
<h1 id="&#x8FD0;&#x7B97;&#x7B26;&#x7684;&#x4F18;&#x5148;&#x7EA7;">&#x8FD0;&#x7B97;&#x7B26;&#x7684;&#x4F18;&#x5148;&#x7EA7;</h1>
<ol>
<li>()&#x3001;[]&#x3001;&#x201C;.&#x201D;&#x3001;&#x6307;&#x5411;&#x8FD9;&#x56DB;&#x4E2A;&#x4E3A;1&#x7EA7;</li>
<li>&#x5355;&#x76EE;&#x662F;2&#x7EA7;&#xFF08;++&#x3001;--&#x3001;&#x903B;&#x8F91;&#x975E;&#xFF01;&#x4E09;&#x4E2A;&#xFF09;</li>
<li>&#x53CC;&#x76EE;&#x662F;3-12&#x7EA7;&#xFF08;&#x7B97;&#x672F;<3-4>&#x9AD8;&#x4E8E;&#x5173;&#x7CFB;<6-7>&#xFF0C;&#x5173;&#x7CFB;&#x9AD8;&#x4E8E;&#x903B;&#x8F91;<11-12>)<ol>
<li>&#x4E58;&#x9664;&#x53D6;&#x4F59;&#x4E3A;3&#x7EA7;&#xFF0C;&#x52A0;&#x51CF;&#x4E3A;4&#x7EA7;&#xFF0C;&#x6545;&#x4E3A;3-4&#x7EA7;</li>
<li>&gt;&#x3001; &gt;=&#x3001; &lt;&#x3001; &lt;=&#x4E3A;6&#x7EA7;&#xFF0C;==&#x3001;!=&#x4E3A;7&#x7EA7;&#xFF0C;&#x6545;&#x4E3A;6-7&#x7EA7;</li>
<li>&#x903B;&#x8F91;&#x4E0E;11&#x7EA7;&#xFF0C;&#x903B;&#x8F91;&#x6216;12&#xFF0C;&#x6545;&#x4E3A;11-12&#x7EA7;</li>
</ol>
</11-12></6-7></3-4></li>
<li>13&#x7EA7;&#x662F;&#x4E09;&#x76EE;&#xFF08;x&#xFF1A;y&#xFF1F;z&#xFF09;</li>
<li>14&#x7EA7;&#x662F;&#x8D4B;&#x503C;&#x8FD0;&#x7B97;&#x7B26;</li>
<li>15&#x7EA7;&#x4E3A;&#x9017;&#x53F7;&#x8FD0;&#x7B97;&#x7B26;</li>
</ol>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="chapter3.html" class="navigation navigation-prev " aria-label="Previous page: 第三章 顺序结构">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="chapter5.html" class="navigation navigation-next " aria-label="Next page: 第五章 循环结构">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"第四章 选择结构","level":"1.5","depth":1,"next":{"title":"第五章 循环结构","level":"1.6","depth":1,"path":"chapter5.md","ref":"chapter5.md","articles":[]},"previous":{"title":"第三章 顺序结构","level":"1.4","depth":1,"path":"chapter3.md","ref":"chapter3.md","articles":[]},"dir":"ltr"},"config":{"plugins":["-lunr","-search","-highlight","-livereload","search-plus@^0.0.11","disqus@^0.1.0","prism@^2.1.0","prism-themes@^0.0.2","emphasize@^1.1.0","katex@^1.1.3","splitter@^0.0.8","terminal@^0.3.2"],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"prism":{"css":["prism-themes/themes/prism-base16-ateliersulphurpool.light.css"]},"disqus":{"useIdentifier":false,"shortName":"gitbookuse"},"emphasize":{},"splitter":{},"katex":{},"fontsettings":{"theme":"white","family":"sans","size":2},"prism-themes":{},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"terminal":{"copyButtons":true,"fade":false,"style":"flat"},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":true},"search-plus":{}},"theme":"default","author":"马小安","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"C语言程序设计精髓程","language":"zh-hans","gitbook":"*","description":"苏小红(哈工大)"},"file":{"path":"chapter4.md","mtime":"2018-01-31T01:17:29.879Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-01-31T04:39:34.249Z"},"basePath":".","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="gitbook/gitbook.js"></script>
    <script src="gitbook/theme.js"></script>
    
        
        <script src="gitbook/gitbook-plugin-search-plus/jquery.mark.min.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-search-plus/search.js"></script>
        
    
        
        <script src="https://cdnjs.cloudflare.com/ajax/libs/URI.js/1.16.1/URI.min.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-disqus/plugin.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-splitter/splitter.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-terminal/plugin.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

